<template>
	<view class="eva_box">
		
	</view>
</template>

<script>
	import {
		getUserInfo,
		getEvaInfo
	} from '@/api/user.js';
	export default {
		data() {
			return {
				userInfo: {}
			}
		},
		
		
		onLoad(op) {
			if (op.edit) {
				this.edit = parseInt(op.edit);
			}
		},
		
		methods: {
			/**
			 * 获取个人用户信息
			 */
			getUser: function() {
				let that = this;
				this.m_show("加载中");
				getUserInfo().then(res => {
					that.userInfo = res.data;
					if (that.m_empty(res.data.avatar)) {
						that.userInfo.avatar =
							"https://lives-1308318918.cos.ap-shanghai.myqcloud.com/images/default.png";
					}
					that.m_hide();
				});
			},
			
		
			
			
		}
		
	}
</script>

<style>
</style>